﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;

namespace BLL
{
    public class SanphamBLL
    {
        private static SanphamDAL db = new SanphamDAL();
        #region[Sanpham_Insert]
        public static void Sanpham_Insert(SanphamInfo data)
        {
            db.Sanpham_Insert(data);
        }
        #endregion

        #region[Sanpham_Update]
        public static void Sanpham_Update(SanphamInfo data)
        {
            db.Sanpham_Update(data);
        }
        #endregion

        #region[Sanpham_Delete]
        public static void Sanpham_Delete(string id)
        {
            db.Sanpham_Delete(id);
        }
        #endregion

        #region[Sanpham_GetByAll]
        public static DataTable Sanpham_GetByAll()
        {
            return db.Sanpham_GetByAll();
        }
        #endregion

        #region[Sanpham_GetById]
        public static DataTable Sanpham_GetById(string id)
        {
            return db.Sanpham_GetById(id);
        }
        #endregion

        #region[Sanpham_GetByLoai]
        public static DataTable Sanpham_GetByLoai(string id)
        {
            return db.Sanpham_GetByLoai(id);
        }
        #endregion

        #region[Sanpham_GetByTop]
        public static DataTable Sanpham_GetByTop(string Top, string Where, string Order)
        {
            return db.Sanpham_GetByTop(Top, Where, Order);
        }
        #endregion
    }
}
